// import com.alibaba.druid.sql.ast.statement.SQLShowProcessListStatement;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "MySqlShowProcessListStatement.h"
#include "../../visitor/MySqlASTVisitor.h"
#include "../../../../visitor/SQLASTVisitor.h"
#include "../../../../../utils/instanceof.h"

void MySqlShowProcessListStatement::accept0(SQLASTVisitor_ptr visitor)
{
  if (instanceof <SQLASTVisitor, MySqlASTVisitor>(visitor))
  {
    accept0(std::dynamic_pointer_cast<MySqlASTVisitor>(visitor));
  }
  else
  {
    SQLShowProcessListStatement::accept0(visitor);
  }
}

void MySqlShowProcessListStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  visitor->visit(SharedObject(MySqlShowProcessListStatement));
  visitor->endVisit(SharedObject(MySqlShowProcessListStatement));
}
